﻿using System;

#if NET35

namespace Kernelx.Common.DataAnnotations.Schema
{

    /// <summary>
    /// 
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    public class ForeignKeyAttribute : Attribute
    {

        /// <summary>
        /// 
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        public ForeignKeyAttribute(string name)
        {
            Name = name;
        }
    }
}

#endif